# global_vars.py
import time
from . import lib_MJ as MJ

# 全局变量初始化
TIME_START = time.time()
w_type = 0  # lib_MJ的权重选择
ROUND = 0  # 轮数
t3Set = MJ.get_t3info()
t2Set, t2Efc, efc_t2index = MJ.get_t2info()
REMAIN_NUM = 112  # 剩余牌数
KING = None  # 百搭牌

T_SELFMO = [0] * 34  # 自摸概率表
LEFT_NUM = [0] * 34  # 未出现的牌的数量表
RT1 = [[0] * 34, [0] * 34]  # 其他玩家状态表[不需要的牌,需要的牌]
RT2 = [[0] * 34, [0] * 34]  # 计算吃碰概率和危险度
RT3 = [[0] * 34, [0] * 34]  # 其他用途表

t1tot3_dict = MJ.t1tot3_info()  # t1转化为t3的字典
t2tot3_dict = MJ.t2tot3_info()  # t2转化为t3的字典
